package com.ruoyi.steel_warehouse_zlw.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.steel_warehouse_zlw.mapper.ZlwSteelWarehouseMapper;
import com.ruoyi.steel_warehouse_zlw.domain.ZlwSteelWarehouse;
import com.ruoyi.steel_warehouse_zlw.service.IZlwSteelWarehouseService;
import com.ruoyi.common.core.text.Convert;

/**
 * 钢材-仓库关系信息Service业务层处理
 * 
 * @author zlw
 * @date 2025-06-11
 */
@Service
public class ZlwSteelWarehouseServiceImpl implements IZlwSteelWarehouseService 
{
    @Autowired
    private ZlwSteelWarehouseMapper zlwSteelWarehouseMapper;

    /**
     * 查询钢材-仓库关系信息
     * 
     * @param steelId 钢材-仓库关系信息主键
     * @return 钢材-仓库关系信息
     */
    @Override
    public ZlwSteelWarehouse selectZlwSteelWarehouseBySteelId(String steelId)
    {
        return zlwSteelWarehouseMapper.selectZlwSteelWarehouseBySteelId(steelId);
    }

    /**
     * 查询钢材-仓库关系信息列表
     * 
     * @param zlwSteelWarehouse 钢材-仓库关系信息
     * @return 钢材-仓库关系信息
     */
    @Override
    public List<ZlwSteelWarehouse> selectZlwSteelWarehouseList(ZlwSteelWarehouse zlwSteelWarehouse)
    {
        return zlwSteelWarehouseMapper.selectZlwSteelWarehouseList(zlwSteelWarehouse);
    }

    /**
     * 新增钢材-仓库关系信息
     * 
     * @param zlwSteelWarehouse 钢材-仓库关系信息
     * @return 结果
     */
    @Override
    public int insertZlwSteelWarehouse(ZlwSteelWarehouse zlwSteelWarehouse)
    {
        return zlwSteelWarehouseMapper.insertZlwSteelWarehouse(zlwSteelWarehouse);
    }

    /**
     * 修改钢材-仓库关系信息
     * 
     * @param zlwSteelWarehouse 钢材-仓库关系信息
     * @return 结果
     */
    @Override
    public int updateZlwSteelWarehouse(ZlwSteelWarehouse zlwSteelWarehouse)
    {
        return zlwSteelWarehouseMapper.updateZlwSteelWarehouse(zlwSteelWarehouse);
    }

    /**
     * 批量删除钢材-仓库关系信息
     * 
     * @param steelIds 需要删除的钢材-仓库关系信息主键
     * @return 结果
     */
    @Override
    public int deleteZlwSteelWarehouseBySteelIds(String steelIds)
    {
        return zlwSteelWarehouseMapper.deleteZlwSteelWarehouseBySteelIds(Convert.toStrArray(steelIds));
    }

    /**
     * 删除钢材-仓库关系信息信息
     * 
     * @param steelId 钢材-仓库关系信息主键
     * @return 结果
     */
    @Override
    public int deleteZlwSteelWarehouseBySteelId(String steelId)
    {
        return zlwSteelWarehouseMapper.deleteZlwSteelWarehouseBySteelId(steelId);
    }
}
